<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/6/13
 * Time: 9:35
 */

//1、制作一个文件上传的页面，完成文件上传功能。（30分）
//限制规则：
//上传的文件不能超过1M,
//上传文件的类型只能是jpg、gif、png、jpeg,
//对上传的文件进行保存。


?>


<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>提交数据</title>
</head>
<body>

<form action="uploading.php" method="post" enctype="multipart/form-data">
    <table>
        <tr><th>上传文件</th><td><input type="file" name="tp"></td></tr>
        <tr><th></th><td><input type="submit" name="submit" value="提交"></td></tr>
    </table>
</form>


</body>
</html>









